<template>
	<view class="notify-box">
		<view class="notify-content flex-row">
			<Avatar class="avatar" :user="notifyUser" size="100rpx" />
			<view class="notify-info">
				<view class="nick-name">{{notifyUser.nickName}}</view>
				<view class="notify-text line-clamp1">{{notifyText}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import Avatar from '@/components/Avatar/Avatar.vue';
	export default {
		components: {
			Avatar
		},
		props: {
			notifyUser: {
				type: Object,
				default: () => ({}),
			},
			notifyText: {
				type: String,
				default: '',
			}
		}
	}
</script>

<style scoped lang="scss">
	.notify-box {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 800;
		padding-top: 100rpx;

		.notify-content {
			margin: 0 30rpx;
			padding: 20rpx 30rpx;
			background-color: rgba(255, 255, 255, .8);
			backdrop-filter: blur(3px);
			border-radius: 3px;
			border: 1px solid #f0f0f0;

			.notify-info {
				margin-left: 20rpx;

				.nick-name {
					font-size: 36rpx;
				}

				.notify-text {
					font-size: 30rpx;
					color: #999;
				}
			}
		}
	}
</style>